 <?php 

include("../db/opendb.php");

$query = "INSERT into zillow_guesses (user_id, current_price, future_price, cur_date, future_date, zid, address, city, state, zip, longitude, latitude, refer, last_update) 
values ('".$_POST['username']."', '".$_POST['zamount']."', '".$_POST['price']."', '".date('Y-m-d H:i:s')."', '".$_POST['date']."', '".$_POST['zpid']."', '".$_POST['street']."', '".$_POST['city']."', '".$_POST['state']."', '".$_POST['zip']."', '".$_POST['longitude']."', '".$_POST['latitude']."', '".$_POST['refer']."', '".$_POST['lastupdate']."')";

$result = mysql_query($query) or die ("SQL Error".mysql_error());

$insert_id = mysql_insert_id();

echo $insert_id;
?>

